Text View
A custom view that displays text, offering two rendering modes:
- Native Rendering: Uses an embedded androidx.appcompat.widget.AppCompatTextView for displaying text directly on the device. This mode supports auto-sizing text.
- Image Rendering: Sends the text and styling parameters to a remote service, which generates an image of the text. This image is then downloaded and displayed in an ImageView. This mode can be useful for achieving consistent text appearance across different devices or for complex styling not easily achievable natively.
This view implements RevelControl for integration into the RevelDigital player system, allowing it to be managed as a content module. It uses DownloadFileTask2 for asynchronous image downloading when in image rendering mode.
See also
Constructors
Functions
Link copied to clipboard
Gets an iterator over the configuration s for this control.
Link copied to clipboard
Gets the associated with this control, if any.
Link copied to clipboard
Gets the type of the underlying module or content associated with this control.
Link copied to clipboard
Initializes the control with its associated module context.
Link copied to clipboard
Checks if this control is configured to start its operation automatically after #initialize(Module) initialization.
Link copied to clipboard
Callback invoked when the DownloadFileTask2 (for downloading a rendered text image) completes.
Link copied to clipboard
Sets whether this control should start its operation automatically after #initialize(Module) initialization.
Link copied to clipboard
Sets the rendering mode for this TextView.